import requests

embedding_response = requests.post('http://localhost:11434/api/embeddings',
                                  json={'model': 'nomic-embed-text', 'prompt': '你的文本'})

print(embedding_response.json())